<?php

namespace App\Policies;

use App\Models\Admin;
use Illuminate\Auth\Access\HandlesAuthorization;

class AdminPolicy
{
    use HandlesAuthorization;

    /**
     * Create a new policy instance.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }


    /**
     * @Author: hzwlxy
     * @Email: 120235331@qq.com
     * @Date: 2019/7/4 17:36
     * @Description:edit 编辑时候，只能编辑自己，edit方法名随意
     * @param Admin $admin
     * @param Admin $model
     * @return mixed
     */
    public function edit(Admin $admin, Admin $model){
            return $admin->id =$model->id;
    }



}
